
<jsp:useBean id="model" class="mvc.dao.WebModel" scope="session"/>
<%@page session="true" errorPage="PaginaError.jsp"%>

<%
    HttpSession sesion= request.getSession();
    request=(HttpServletRequest) pageContext.getRequest();
    String url=request.getContextPath();
    String controller= url+"/controladores";
    //valido la sesion del usuario
    String tipoUsuario=sesion.getAttribute("tipoUsuario").toString();
    model.init(application);
        
    if(sesion!=null){
        
        if(tipoUsuario.equals("Administrador") || tipoUsuario.equals("Director De Grupo")){
            
%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="keywords" content="magic color, colorful theme, free CSS templates, CSS, HTML" />
        <meta name="description" content="Magic Color Theme, Colorful Template, free website template by templatemo.com" />
        <link href="<%=url%>/estilos/templatemo_style.css" rel="stylesheet" type="text/css" />
        <link href="<%=url%>/estilos/jquery.lightbox-0.5.css" rel="stylesheet" type="text/css" />
        <link href="<%=url%>/estilos/ie6.css" rel="stylesheet" type="text/css" />
        <link href="<%=url%>/estilos/menu_style.css" rel="stylesheet" type="text/css" />
        <link href="<%=url%>/estilos/estilosPrueba/style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="<%=url%>/estilos/estilosPrueba/coin-slider.css" />
        <script type="text/javascript" src="<%=url%>/estilos/js2/jquery.js"></script>
        <script type="text/javascript" src="<%=url%>/estilos/js2/jquery.lightbox-0.5.js"></script>
        <script type="text/javascript" src="<%=url%>/estilos/js2/jquery.lightbox-0.5.min.js"></script>
        <script type="text/javascript" src="<%=url%>/estilos/js2/jquery.lightbox-0.5.pack.js"></script>
    </head>
    
    <body> 
        <div id="templatemo_body_wrapper">
            <div id="templatemo_wrapper">
                <div id="templatemo_header">
                    <div id="site_title"><h1><a href="http://www.templatemo.com" target="_parent">Free CSS Templates</a></h1></div>
                </div>
                <div class="main">
                    <div class="header">
                        <div class="fbg">
                            <div class="fbg_resize">
                                <%-- <a href="#"><img src="images/logoBanner.png" width="390" height="108" alt="" class="gal" /></a> --%>
                              
                       </div>
                    </div>
                </div>
        </div>
  
        <!-- end of templatemo_menu -->
<div id="templatemo_main">
        	<div class="col_w900 hr_divider">
			
              	<div class="col_allw280 frontpage_box">
                   <form   action="<%=controller %>/Registrar/Horario" method="post" width="500" height="65">
                        <br />
                        Codigo:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input name="codigo" style="width: 232px" type="text" /><br />
                        Ubicacion:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input name="ubicacion" style="width: 232px" type="text" /><br />
                        Dia:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <select name="dia" style="width: 236px">
                              <option value="Lunes/Miercoles"> Lunes-Miercoles </option>
                              <option value="Martes/Jueves"> Martes-Jueves </option>
                              <option value="Miercoles/Viernes"> Miercoles-Viernes </option>
                              <option value="Jueves/Lunes"> Jueves-Lunes </option>
                              <option value="Viernes/Martes"> Viernes-Martes </option>
                              <option value="Sabado/Jueves"> Sabado-Jueves </option>
                        </select><br />
                        Hora:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <select name="hora" style="width: 238px">
                            <option value="8:00am/10:00am">8:00 am - 10:00 am</option>
                            <option value="10:00am/12:00pm">10:00 am - 12:00 pm</option>
                            <option value="12:00pm/2:00pm">12:00 pm - 2:00 pm</option>
                            <option value="2:00pm/4:00pm">2:00 pm - 4:00 pm</option>
                            <option value="4:00pm/6:00pm">4:00 pm - 6:00 pm</option>
                            <option value="6:00pm/8:00pm">6:00 pm - 8:00 pm</option>
                            <option value="8:00pm/10:00pm">8:00 pm - 10:00 pm</option>
                        </select><br />
                        Estado:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <select name="estado" style="width: 240px">
                            <option>Activo</option>
                            <option>Inactivo</option>
                        </select><br />
                        Descripcion:&nbsp;&nbsp;<br /><textarea name="descripcion" style="height: 40px; width: 308px"></textarea><br />
                        <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input name="enviar" type="submit" value="Registrar" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input name="limpiar" type="reset" value="Limpiar" />
                        <a href="<%=url%>/ConsultarHorario.jsp">Consultar horario</a>
                        
                   </form>

                </div>
				
                <div class="cleaner"></div>
            </div>
            
           
      </div> <!-- end of templatemo main -->
    	
    </div>
</div>
<%}else
        if(tipoUsuario.equals("Aspirante")){
            response.sendRedirect(url+"/MenuAspirante.jsp");
        }else
        if(tipoUsuario.equals("Secretaria")){
            response.sendRedirect(url+"/MenuSecretaria.jsp");
        }else
        if(tipoUsuario.equals("Director De Grupo")){
            response.sendRedirect(url+"/MenuDirectorDeGrupo.jsp");
        }else
        if(tipoUsuario.equals("Jefe De Cultura")){
            response.sendRedirect(url+"/MenuJefeDeCultura.jsp");
        }
        }else{
            response.sendRedirect(url+"/index.jsp");
        }
            
%>